<template>
  <view class="u2cert2">
    <view v-for="(item, index) in U.RZ" :key="index" :class="'li2 ' + item.class">
      <view v-if="item.F === 'health' ||item.F === 'credit' ">
        <view  :class="['i','alyIcon-rzico_' + item.F,]" :style="item.bg">
          <text class="ico span"></text>
        </view>
        <view class="h4">{{ item.title }}</view>
      </view>
      <view v-else>
        <view :class="'i ico rzico_' + item.F" :style="item.bg">
          <text class="ico span"></text>
        </view>
        <view class="h4">{{ item.title }}</view>
      </view>
    </view>
  </view>
</template>

<script>
var e = require('../../res/www.a9a.cn.js');
var app = getApp();
export default {
  data() {
    return {
      U: {
        RZ: []
      }
    };
  },
  onLoad: function (t) {
    var that = this;
    var s = uni.getStorageSync('COOK_U');
    uni.request({
      url: app.globalData.WWW + '/api/wxxcx/u.php',
      data: {
        submitok: 'cert_more',
        uid: t.uid,
        openid: s.openid
      },
      success: function (a) {
        if (1 == (a = e.jsoneval(a.data)).flag) {
          var t = a.U.nickname;
          that.setData({
            U: a.U
          });
        } else {
          t = a.msg;
          a.this = that;
          e.sorry(a);
        }
        uni.setNavigationBarTitle({
          title: t + '的认证详情'
        });
      }
    });
  },
  methods: {}
};
</script>
<style>
@import 'cert_more.css';
</style>
